PARSER=parser
SEAR=server
HTSE=httpserver
cc=g++

.PHONY:all
all:$(PARSER) $(SEAR) $(HTSE)

$(PARSER):parser.cc
	$(cc) -o $@ $^   -std=c++11 -lboost_system -lboost_filesystem
$(SEAR):server.cc 
	$(cc) -o $@ $^ -std=c++11 -ljsoncpp
$(HTSE):http_server.cc
	$(cc) -o $@ $^ -std=c++11 -ljsoncpp

.PHONY:clean
clean:
	rm -f $(PARSER) $(SEAR) $(HTSE)

